window.onload = function() {
    let lf = document.querySelector('.free');
    let rg = document.querySelector('.only');
    let se = document.querySelector('.service');

    // 鼠标移入移出显示'免费咨询''
    rg.addEventListener('mouseenter', function() {
        lf.style.display = "block";
    })
    rg.addEventListener('mouseleave', function() {
            lf.style.display = "none";
        })
        // 弹出或隐藏信息模块
    let flag = 0;
    rg.addEventListener('click', function() {
        // console.log(222);
        if (flag === 0) {
            se.style.display = "block";
            flag = 1
                // console.log(flag);
        } else {
            se.style.display = "none";
            flag = 0
        }
    })
}